using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class ProductInfo
    {
        #region Model
        private int _id;
        private int _adminid;
        private int _category1id;
        private int _category2id;
        private string _num;
        private string _name;
        private string[] _imgs={};
        private float _oprice;
        private float _aprice;
        private string _unit;
        private string _tags="";
        private int _sellcount;
        private string _context;
        private int _clickcount;
        private int _sort;
        private DateTime _createdate;

        //拓展字段
        public string Img = "";
        public string OPriceText = "";
        public string[] APriceText={};
        public string[] TagsList = { };
        /// <summary>
        /// 唯一ID
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 商户ID
        /// </summary>
        public int AdminID
        {
            set { _adminid = value; }
            get { return _adminid; }
        }
        /// <summary>
        /// 1级类别ID
        /// </summary>
        public int Category1ID
        {
            set { _category1id = value; }
            get { return _category1id; }
        }
        /// <summary>
        /// 2级类别ID
        /// </summary>
        public int Category2ID
        {
            set { _category2id = value; }
            get { return _category2id; }
        }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Num
        {
            set { _num = value; }
            get { return _num; }
        }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string[] Imgs
        {
            set { _imgs = value; }
            get { return _imgs; }
        }
        /// <summary>
        /// 原价
        /// </summary>
        public float OPrice
        {
            set { _oprice = value; }
            get { return _oprice; }
        }
        /// <summary>
        /// 市场价
        /// </summary>
        public float APrice
        {
            set { _aprice = value; }
            get { return _aprice; }
        }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            set { _unit = value; }
            get { return _unit; }
        }
        /// <summary>
        /// 产品标签
        /// </summary>
        public string Tags
        {
            set { _tags = value; }
            get { return _tags; }
        }
        /// <summary>
        /// 销量
        /// </summary>
        public int SellCount
        {
            set { _sellcount = value; }
            get { return _sellcount; }
        }
        /// <summary>
        /// 产品详情
        /// </summary>
        public string Context
        {
            set { _context = value; }
            get { return _context; }
        }
        /// <summary>
        /// 点击量
        /// </summary>
        public int ClickCount
        {
            set { _clickcount = value; }
            get { return _clickcount; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort
        {
            set { _sort = value; }
            get { return _sort; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model
    }
}

